﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class PositionDutyDtlsBLL : IPositionDutyDtlsBLL
    {
        PositionDutyDtlsDAL dtlsDAL = new PositionDutyDtlsDAL();

        public PositionDutyDtlsInfo GetPositionDutyDtlsInfo(Nullable<int> seq)
        {
            return dtlsDAL.GetPositionDutyDtlsInfo(seq);
        }
        public IList<PositionDutyDtlsInfo> LoadGridPositionDutyDtls(Nullable<int> PosSeq)
        {
            return dtlsDAL.LoadGridPositionDutyDtls(PosSeq);
        }
        public void Insert(PositionDutyDtlsInfo Info)
        {
            try
            {
                dtlsDAL.Insert(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(PositionDutyDtlsInfo Info)
        {
            try
            {
                dtlsDAL.Update(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(PositionDutyDtlsInfo Info)
        {
            try
            {
                dtlsDAL.Delete(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
    }
}
